package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class JSONResult {
    private boolean success = true;
    private String msg;

    //携带数据,当查询出结果后,直接将查询出的对象塞入该属性中,返回给页面
    private Object data;
    //调用该方法表示操作失败
    public void mark(String msg){
        this.success = false;
        this.msg = msg;
    }
}
